﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MaciejGrabek.WP7.Services.Model.Entities;

namespace MaciejGrabek.WP7.Services.Model.Mappers
{
    public static class GameMapper
    {
        public static GameDto ToDto(Games item)
        {
            return new GameDto()
                       {
                           Id = item.Id,
                           Name = item.Name,
                           NormalizedName = item.NormalizedName,
                           GameHash = item.GameHash
                       };
        }

        public static IEnumerable<GameDto> ToDto(IEnumerable<Games> items)
        {
            return items.Select(item => ToDto(item));
        }
    }
}